package nsga.mcMST;

import java.io.IOException;
import java.util.Properties;

import common.GeneticOperations;

import mcMST.Graph;
import mcMST.MSTGeneticOperations;
import mcMST.MSTGenotype;
import nsga.NsgaRunner;
import nsga.Nsga2Algorithm.Nsga2Parameters;


public class NsgaMstRunner extends NsgaRunner<MSTGenotype> {

	@Override
	public GeneticOperations<MSTGenotype> getGeneticOperations(
			Properties properties, Nsga2Parameters params) {

		Graph graph = null;
		try {
			graph = new Graph(params.inputFile);
		} catch (IOException e) {
			System.out.println(e.getMessage());
		}

		MSTGeneticOperations go = new MSTGeneticOperations(graph);
		return go;
	}

	public static void main(String[] args) {

		new NsgaMstRunner().start("MST", args);
	}

}
